import request from '@/utils/request'

// 查询学生办证申请信息列表
export function listCertApplication(certApplicationId) {
  return request({
    url: '/student/CertApplication/list/' + certApplicationId,
    method: 'get',
  })
}

// 查询学生办证申请信息详细
export function getCertApplication(id) {
  return request({
    url: '/student/CertApplication/' + id,
    method: 'get'
  })
}

// 新增学生办证申请信息
export function addCertApplication(data) {
  return request({
    url: '/student/CertApplication',
    method: 'post',
    data: data
  })
}

// 修改学生办证申请信息
export function updateCertApplication(data) {
  return request({
    url: '/student/CertApplication',
    method: 'put',
    data: data
  })
}

// 选中提交的学生信息
export function selectStudentSubmitCert(id) {
  return request({
    url: '/student/CertApplication/selectStudentSubmitCert/' + id,
    method: 'get'
  })
}